package com.group01.community.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group01.community.entity.ZyCommunity;
import com.group01.community.entity.vo.ZyCommunityVo;

import java.util.List;

/**
 * <p>
 * 小区  服务类
 * </p>
 *
 * @author guoyuan
 * @since 2025-05-01
 */
public interface ZyCommunityService extends IService<ZyCommunity> {


    /**
     * 模糊查询分页获取小区信息
     * @param curr 当前页
     * @param size 当页条数
     * @param communityCode 小区id
     * @param communityName 小区名
     * @return 小区信息
     */
    IPage<ZyCommunityVo> getCommunityPage(int curr, int size, String communityCode, String communityName);

    /**
     * 获取小区和楼栋树
     * @return
     */
    List<ZyCommunityVo> getCommunityAndBuildingTree();

    /**
     * 获取小区和楼栋和单元树
     * @return
     */
    List<ZyCommunityVo> getCommunityAndBuildingAndUnitTree();
}
